<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>老人用药</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link href="/senior_assets/css/bootstrap.min.css" rel="stylesheet">
	<link href="/senior_assets/css/style.css" rel="stylesheet">
	<link href="/senior_assets/css/font-awesome.css" rel="stylesheet">
</head>
<body>
	<div class="container-fluid">
		<div class="om-ctl-mes">
			<div class="title">
				<div class="col-xs-12"><span class="fa fa-list-ul"> 老人管理</span><b class="fa fa-caret-right"></b><i>老人用药</i></div>
			</div>
			<div class="seltemple">
				<div class="col-xs-12">	
					<form class="form-inline" method="get" action="/admin_eatmedicine" >
					<div class="col-xs-3 mes-search pha-search" action="/admin_eatmedicine" class="form"><label>关键词搜索</label><input type="text" placeholder="老人姓名" name="key_name" value="<?=$pKeyName?>"><button id="search" type="button">搜索</button></div>
				</form>
				</div>
			</div>
			<div  class="mes-conttent col-xs-12">
				<table class="table pha-table">
	              <thead>
	             	<tr>
			        <th>编号</th>
			        <th>老人姓名</th>
			        <th>用药信息</th>
			        <th>医嘱</th>
			        <th>操作人员</th>
			        <th>备注</th>
			        <th>操作</th>
		            </tr>
	              </thead>
	             <tbody>
	             <?foreach($tDatas as $tRow){?>
		           <tr>
		           	 <td><?=$tRow['sid']?></td>
			         <td><span><?=$tRow['name']?></span><small class="hiddendiv"></small></td>
			         <td><span class="med-name"><?=empty($tRow['medicine_name'])?'否':$tRow['medicine_name']?></span><small class="hiddendiv"></small></td>
			         <td><span class="say"><?=$tRow['remarks']?></span><small class="hiddendiv"></small></td>
			         <td><span><?=$tRow['username']?></span><small class="hiddendiv"></small></td>
			         <td></td>			         
			         <td>
			         	<a href="/admin_eatmedicine/edit?sid=<?=$tRow['sid']?>"><button style="color:black;" type="button">添加</button></a>
			         </td>
		           </tr>
				<?}?>
	            </tbody>
              </table>
              <?=$tShow?>
			</div>
		</div>
    </div>
    <script type="text/javascript" src="/senior_assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="/senior_assets/js/jq.js"></script><small class="hiddendiv"></small>

</body>
</html>
<script>
$('#search').click(function(){
    $('form').submit();
});
</script>